<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="../includes/importer.jsp"%>
<!doctype html>
<html>

<head>
<ht:head />
<script type="text/javascript">
</script>
</head>
<body>

	<br />
	<div id="search-menu">
		<ul>
			<ht:menu-btn type="search" />
		</ul>
		<br style="clear: left" />
	</div>
	<div class="queryContainer">
		<form name="queryForm" id="queryForm" action="list" method="get">
			<table>
				<tr>
					<td>商品名称：</td>
                	<td><input type="text" name="itemName" value="${param.itemName}" class="txt" style="width:150px"/></td>
					<td width="65">下单时间：</td> 	
					<td width="300">
	                    <input type="text" id="inputStartTimeS" name="inputStartTimeS" value="${param.inputStartTimeS}" class="txt Wdate"
	                           readOnly onfocus="WdatePicker({vel:'createTime',realDateFmt:'yyyyMMdd',maxDate:'#F{$dp.$D(\'inputEndTimeS\')||\'2020-10-01\'}'})" />
	                    <input type="hidden" name="createTime" id="createTime" value="${param.createTime}"/>
	                   	 至
	                    <input type="text" id="inputEndTimeS" name="inputEndTimeS" value="${param.inputEndTimeS}" class="txt Wdate"
	                           readOnly onfocus="WdatePicker({vel:'cerateTimeEnd',realDateFmt:'yyyyMMdd',minDate:'#F{$dp.$D(\'inputStartTimeS\')}',maxDate:'2020-10-01'})" />
	                    <input type="hidden" name="cerateEndTime" id="cerateEndTime" value="${param.cerateEndTime}" />
	                </td>
	                
	                 <td><ct:btn type="search" /></td>
				</tr>
			</table>
		</form>
	</div>
	<div class="container">
		<br />
		<h3>订单列表</h3>
		<div class="mainbox">
			<c:if test="${not empty pageData}">

				<table class="datalist fixwidth">
					<tr>
						<th nowrap="nowrap" width="120">订单编号</th>
						<th nowrap="nowrap" width="120">商品名称</th>
						<th nowrap="nowrap" width="80">商品数量</th>
						<th nowrap="nowrap" width="80">商品单价</th>
						<th nowrap="nowrap" width="80">实际支付</th>
						<th nowrap="nowrap" width="80">订单状态</th>
						<th nowrap="nowrap" width="130">创建时间</th>
						<th nowrap="nowrap">操作</th>
					</tr>
				<c:forEach items="${pageData.data}" var="item">
						<tr>
							<td nowrap="nowrap">${item.id}</td>
							<td nowrap="nowrap" class="ellipsis">${item.itemName }</td>
							<td nowrap="nowrap" class="ellipsis">${item.num }</td>
							<td nowrap="nowrap" class="ellipsis">${item.perPrice }</td>
							<td nowrap="nowrap" class="ellipsis">${item.totalPrice }</td>
							<td nowrap="nowrap">状态</td>
							<td nowrap="nowrap"><ct:time source="${item.createTime }"/></td>
							<td nowrap="nowrap">
								<ct:display model="order_list" btn="view_btn">
									<a href="view/${item.id}">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</ct:display>
							</td>
						</tr>
				</c:forEach>
				</table>

				<ht:page pageData="${pageData}" />

			</c:if>
			<c:if test="${empty pageData.data}">
				<div class="note">
					<p class="i">目前没有相关记录!</p>
				</div>
			</c:if>
		</div>

	</div>

</body>
</html>